const path = require('path')
const PrerenderSPAPlugin = require('prerender-spa-plugin-next')

module.exports = {
    transpileDependencies: ['vuetify'],
    configureWebpack: () => {
        if (process.env.NODE_ENV === 'production') {
          return {
            plugins: [
              new PrerenderSPAPlugin({
                staticDir: path.join(__dirname, 'dist'),
                routes: ['/']
              })
            ]
          }
        }
      }
}